<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>取消广告</title>
  <style>
   .advertisement {
      width: 800px;
      height: 1000px;
      background-color:white;
      position: relative;
      margin: 50px auto;
      text-align: center;
      padding: 20px;
    }
   .close-button {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 20px;
      height: 20px;
      background-color: black;
      color: white;
      text-align: center;
      line-height: 20px;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <div class="advertisement">
    <a href="下载.jfif" target="_blank">
      <img src="下载.jfif" alt="" width="800px" height="1000px">
    </a>
    <p></p>
    <div class="close-button">×</div>
  </div>

  <script>
    const closeButtons = document.querySelectorAll('.close-button');
    closeButtons.forEach(button => {
      button.addEventListener('click', function () {
        const advertisement = this.parentElement;
        advertisement.style.display = 'none';
      });
    });
  </script>

</body>

</html>